
clear; clc;
path = pwd;
addpath(genpath(path));
addpath(fullfile(pwd, '..', 'lib'));
data = { 'ALLAML_72n_7129d_2c_12k_amkkc_multi_kernel', 'BASEHOCK_1993n_4862d_2c_tfidf_uni_12k_amkkc_multi_kernel',...
        'bbcnewssport_737n_1000d_5c_uni_12k_amkkc_multi_kernel', 'COIL20_1440n_1024d_20c_12k_amkkc_multi_kernel',...
        'leukemia_72n_7070d_2c_12k_amkkc_multi_kernel','RELATHE_1427n_4322d_2c_tfidf_uni_12k_amkkc_multi_kernel',...
      'UMIST_575n_644d_20c_12k_amkkc_multi_kernel','warpPIE10P_210n_2420d_10c_12k_amkkc_multi_kernel',...
};
dat={
'ALLAML','BASEHOCK','BBC','COIL20','leukemia','RELATHE','UMIST','PIE10P'}; 
for i1 = 1:length(data)
    load(fullfile(pwd,'..','result',data{i1}));
    x=1:11;
    bar(x,res_amkkc_aio(:,1),0.8),
    xlabel('\lambda','Fontname', 'Times New Roman','FontSize',12),
    ylabel('ACC'),
    set(gca,'linewidth',1,'fontsize',12,'fontname','Times');
    set(gca,'XTickLabel',[1.0:0.1:2.0])
    title(strrep(dat{i1},'_','\_'));
    save2pdf(['sensetu\','sensitivity_acc_',dat{i1},'_lambda.pdf']);
end   
    
%%

clear; clc;
path = pwd;
addpath(genpath(path));
addpath(fullfile(pwd, '..', 'lib'));
data = { 'ALLAML_72n_7129d_2c_12k_amkkc_multi_kernel', 'BASEHOCK_1993n_4862d_2c_tfidf_uni_12k_amkkc_multi_kernel',...
        'bbcnewssport_737n_1000d_5c_uni_12k_amkkc_multi_kernel', 'COIL20_1440n_1024d_20c_uni_12k_amkkc_multi_kernel',...
        'leukemia_72n_7070d_2c_12k_amkkc_multi_kernel','RELATHE_1427n_4322d_2c_tfidf_uni_12k_amkkc_multi_kernel',...
      'UMIST_575n_644d_20c_12k_amkkc_multi_kernel','warpPIE10P_210n_2420d_10c_12k_amkkc_multi_kernel',...
};
dat={
'ALLAML','BASEHOCK','BBC','COIL20','leukemia','RELATHE','UMIST','PIE10P'}; 
for i1 = 1:length(data)
    load(fullfile(pwd,'..','result',data{i1}));
    x=1:11;
   % plot(x,res_amkkc_aio(:,2),'-*r','LineWidth',2)
   bar(x,res_amkkc_aio(:,1),0.8),
    xlabel('\lambda','Fontname', 'Times New Roman','FontSize',12),
    ylabel('ACC'),
    set(gca,'linewidth',1,'fontsize',12,'fontname','Times');
    set(gca,'XTickLabel',[1.0:0.1:2.0])
    title(strrep(dat{i1},'_','\_'));
    save2pdf(['sensetu\','sensitivity_acc_',dat{i1},'_lambda.pdf']);
end   
    









